﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Labs
{
    class Program
    {
        static void Main(string[] args)
        {
            double r = double.Parse(Console.ReadLine());
            string coords = Console.ReadLine();
            double x = double.Parse(coords.Split(' ')[0]);
            double y = double.Parse(coords.Split(' ')[1]);

            Console.WriteLine(((x * x + y * y <= r * r) && (x >= 0 && y >= x || x <= 0 && y <= x)).ToString());
        }
    }
}
